import {ref,computed} from 'vue';
import {defineStore} from "pinia";
import {getImageApi} from "@/api/image";
export const useImageStore = defineStore("image", ()=>{
    const images = ref([])
    const imageApi = async ()=>{
         const response = await getImageApi()
         images.value = response.data.images
    }
    return {
        images,
        imageApi
    }
})